package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ciaojian.core.model.Exchange;
import org.apache.ibatis.annotations.Select;

/**
 * @author oxiny
 */
public interface ExchangeMapper extends BaseMapper<Exchange> {

    /**
     * 根据券码查询兑换权益兑换码
     *
     * @param code 券码
     * @return 兑换权益兑换码
     */
    @Select("SELECT * FROM d_exchange WHERE code = #{code} ")
    Exchange getByCode(String code);
}
